#!/usr/bin/env python3
# -*- coding: utf-8 -*-


'''
Python Base 练习
'''

from base.python_base_02 import *;


class Student(object):

    def __init__(self, id, name, age, no):
        self.id = id;
        self.name = name;
        self.age = age;
        self.no = no;

    def get_id(self):
        return self.id;

    def set_id(self, id):
        self.id = id;

    def study(self):
        print("%s 正在学习。" % self.name);

if __name__ == '__main__':
    student = Student(id=1, name="ly", age=100000, no="No123");
    print(student);
    student.set_id(2);
    print(student.id, student.get_id());
    student.study();
    print(student.__dict__);
    print(fun01());